package com.example.demo.entity;

import com.alibaba.fastjson.annotation.JSONField;

public class PostJsonEntity<T> {
    @JSONField(name = "status")
    private String status;
    @JSONField(name = "command")
    private String command;
    @JSONField(name = "commandNumber")
    private String commandNumber;
    @JSONField(name = "data")
    private T data;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getCommandNumber() {
        return commandNumber;
    }

    public void setCommandNumber(String commandNumber) {
        this.commandNumber = commandNumber;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "PostJsonEntity{" +
                "status='" + status + '\'' +
                ", command='" + command + '\'' +
                ", commandNumber='" + commandNumber + '\'' +
                ", data=" + data +
                '}';
    }
}
